﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;

namespace DAL
{
    public class VeChuyenBayDAL
    {
        clsKetNoi kn = new clsKetNoi();
        public int VeChuyenBay_Insert(VeChuyenBayPublic p)
        { 
            int Nparameter=4;
            string[] name= new string[Nparameter];
            object[] value= new object[Nparameter];
            name[0] = "@MaChuyenbay";value[0]=p.MaChuyenBay;
            name[1] = "@MaHangVe";value[1]=p.MaHangVe;
            name[2] = "@MaHanhKhach";value[2]=p.MaHanhKhach;
            name[3] = "@GiaTien"; value[3] = p.GiaTien;
            return kn.Update("VeChuyenBay_Insert", name, value, Nparameter);
        }
    }
}
